// EnforceLogOut.cpp: implementation of the CEnforceLogOut class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "AskTSAPI.h"
#include "EnforceLogOut.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CEnforceLogOut::CEnforceLogOut()
{

}

CEnforceLogOut::~CEnforceLogOut()
{

}
CString CEnforceLogOut::EnSoftPhoneMsg()
{	
	CString strBody = "";
	strBody = "<AskPT>\
<Source  Value=SoftPhone />\
<Action  Value=[Action] />\
<Body>\
<Station>[Station]</Station>\
<Dnis>[Dnis]</Dnis>\
<Reason>[Reason]</Reason>\
<UserData>[UserData]</UserData>\
</Body>\
</AskPT>";
	CString sStation ;
	sStation.Format("station=%s;agentid=%s",m_strStation,m_strAgentID);


	strBody.Replace("[Action]",m_strAction);
	strBody.Replace("[Station]",sStation);
	strBody.Replace("[Dnis]",m_strDnis);
	strBody.Replace("[UserData]",m_strUserData);
	
	return strBody;
}